Move csspaint/ layout tests to external/wpt/ (#6179) Originally I had a pull request here: https://github.com/w3c/web-platform-tests/pull/6163 Later on, as pointed out by foolip@, we could just do it in one Chromium CL, so here it is. Once this lands, I will close the above pull request. In the final patch, I add the tests to external/wpt/ first. In a follow up CL, I will try to remove corresponding tests in http/tests/csspaint/. The reason of breaking into two patches is that doing it in one patch broke some unrelated tests. Please refer to the trybot results in PS#4 and PS#5. Bug: 728593 Change-Id: Iec3affaa20d09e48a73e777d77e550c10a9c0d54 Reviewed-on: https://chromium-review.googlesource.com/527352 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#478295} WPT-Export-Revision: 65a3dd3f4be0fd72623aae56adc31895e4ff9cc9diff --git a/css-paint-api/paint2d-rects-ref.html b/css-paint-api/paint2d-rects-ref.html new file mode 100644 index 0000000..fae2de7 --- /dev/null +++ b/css-paint-api/paint2d-rects-ref.html
@@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<body> +<canvas id ="output" width="100" height="100" style="background: blue;"></canvas> +<script> +var canvas = document.getElementById('output'); +var ctx = canvas.getContext('2d'); + +ctx.fillStyle = 'green'; +ctx.fillRect(0, 0, 100, 100); + +ctx.clearRect(40, 40, 20, 20); + +ctx.strokeStyle = 'red'; +ctx.lineWidth = 4; +ctx.strokeRect(20, 20, 60, 60); +</script> +</body> +</html>